package cn.wyl.feignclient;

import cn.wyl.Store;
import cn.wyl.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = StoreFeignClientFallbackFactory.class)
public interface StoreFeignClient {

    @PostMapping("/store/add")
    JsonResult add(@RequestBody Store store);
}
